<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Swoole</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.stream-wrapper-unregister.html">« stream_wrapper_unregister</a></li>
      <li style="float: right;"><a href="intro.swoole.html">简介 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="refs.basic.other.html">其它基本扩展</a></li>
    <li>Swoole</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="book.swoole" class="book">
 
 <h1 class="title">Swoole</h1>
 
 
 
 
 
 




 






 




 






 






 






 






 






 






 






 
 
 
 
 






 






 






 






 






 






 






 






 






 






 






 






 






 






 
 






 






 






 







<ul class="chunklist chunklist_book"><li><a href="intro.swoole.html">简介</a></li><li><a href="swoole.setup.html">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole.requirements.html">需求</a></li><li><a href="swoole.installation.html">安装</a></li><li><a href="swoole.configuration.html">运行时配置</a></li><li><a href="swoole.resources.html">资源类型</a></li></ul></li><li><a href="swoole.constants.html">预定义常量</a></li><li><a href="ref.swoole-funcs.html">Swoole 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.swoole-async-dns-lookup.html">swoole_async_dns_lookup</a> — Async and non-blocking hostname to IP lookup</li><li><a href="function.swoole-async-read.html">swoole_async_read</a> — Read file stream asynchronously</li><li><a href="function.swoole-async-readfile.html">swoole_async_readfile</a> — Read a file asynchronously</li><li><a href="function.swoole-async-set.html">swoole_async_set</a> — Update the async I/O options</li><li><a href="function.swoole-async-write.html">swoole_async_write</a> — Write data to a file stream asynchronously</li><li><a href="function.swoole-async-writefile.html">swoole_async_writefile</a> — Write data to a file asynchronously</li><li><a href="function.swoole-clear-error.html">swoole_clear_error</a> — Clear errors in the socket or on the last error code</li><li><a href="function.swoole-client-select.html">swoole_client_select</a> — Get the file description which are ready to read/write or error</li><li><a href="function.swoole-cpu-num.html">swoole_cpu_num</a> — Get the number of CPU</li><li><a href="function.swoole-errno.html">swoole_errno</a> — Get the error code of the latest system call</li><li><a href="function.swoole-error-log.html">swoole_error_log</a> — Output error messages to the log</li><li><a href="function.swoole-event-add.html">swoole_event_add</a> — Add new callback functions of a socket into the EventLoop</li><li><a href="function.swoole-event-defer.html">swoole_event_defer</a> — Add callback function to the next event loop</li><li><a href="function.swoole-event-del.html">swoole_event_del</a> — Remove all event callback functions of a socket</li><li><a href="function.swoole-event-exit.html">swoole_event_exit</a> — Exit the eventloop, only available at the client side</li><li><a href="function.swoole-event-set.html">swoole_event_set</a> — Update the event callback functions of a socket</li><li><a href="function.swoole-event-wait.html">swoole_event_wait</a> — Start the event loop</li><li><a href="function.swoole-event-write.html">swoole_event_write</a> — Write data to a socket</li><li><a href="function.swoole-get-local-ip.html">swoole_get_local_ip</a> — Get the IPv4 IP addresses of each NIC on the machine</li><li><a href="function.swoole-last-error.html">swoole_last_error</a> — Get the lastest error message</li><li><a href="function.swoole-load-module.html">swoole_load_module</a> — Load a swoole extension</li><li><a href="function.swoole-select.html">swoole_select</a> — Select the file descriptions which are ready to read/write or error in the eventloop</li><li><a href="function.swoole-set-process-name.html">swoole_set_process_name</a> — Set the process name</li><li><a href="function.swoole-strerror.html">swoole_strerror</a> — Convert the Errno into error messages</li><li><a href="function.swoole-timer-after.html">swoole_timer_after</a> — Trigger a one time callback function in the future</li><li><a href="function.swoole-timer-exists.html">swoole_timer_exists</a> — Check if a timer callback function is existed</li><li><a href="function.swoole-timer-tick.html">swoole_timer_tick</a> — Trigger a timer tick callback function by time interval</li><li><a href="function.swoole-version.html">swoole_version</a> — Get the version of Swoole</li></ul></li><li><a href="class.swoole-async.html">Swoole\Async</a> — The Swoole\Async class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-async.dnslookup.html">Swoole\Async::dnsLookup</a> — Async and non-blocking hostname to IP lookup.</li><li><a href="swoole-async.read.html">Swoole\Async::read</a> — Read file stream asynchronously.</li><li><a href="swoole-async.readfile.html">Swoole\Async::readFile</a> — Read a file asynchronously.</li><li><a href="swoole-async.set.html">Swoole\Async::set</a> — Update the async I/O options.</li><li><a href="swoole-async.write.html">Swoole\Async::write</a> — Write data to a file stream asynchronously.</li><li><a href="swoole-async.writefile.html">Swoole\Async::writeFile</a> — Description</li></ul></li><li><a href="class.swoole-atomic.html">Swoole\Atomic</a> — The Swoole\Atomic class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-atomic.add.html">Swoole\Atomic::add</a> — Add a number to the value to the atomic object.</li><li><a href="swoole-atomic.cmpset.html">Swoole\Atomic::cmpset</a> — Compare and set the value of the atomic object.</li><li><a href="swoole-atomic.construct.html">Swoole\Atomic::__construct</a> — Construct a swoole atomic object.</li><li><a href="swoole-atomic.get.html">Swoole\Atomic::get</a> — Get the current value of the atomic object.</li><li><a href="swoole-atomic.set.html">Swoole\Atomic::set</a> — Set a new value to the atomic object.</li><li><a href="swoole-atomic.sub.html">Swoole\Atomic::sub</a> — Subtract a number to the value of the atomic object.</li></ul></li><li><a href="class.swoole-buffer.html">Swoole\Buffer</a> — The Swoole\Buffer class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-buffer.append.html">Swoole\Buffer::append</a> — Append the string or binary data at the end of the memory buffer and return the new size of memory allocated.</li><li><a href="swoole-buffer.clear.html">Swoole\Buffer::clear</a> — Reset the memory buffer.</li><li><a href="swoole-buffer.construct.html">Swoole\Buffer::__construct</a> — Fixed size memory blocks allocation.</li><li><a href="swoole-buffer.destruct.html">Swoole\Buffer::__destruct</a> — Destruct the Swoole memory buffer.</li><li><a href="swoole-buffer.expand.html">Swoole\Buffer::expand</a> — Expand the size of memory buffer.</li><li><a href="swoole-buffer.read.html">Swoole\Buffer::read</a> — Read data from the memory buffer based on offset and length.</li><li><a href="swoole-buffer.recycle.html">Swoole\Buffer::recycle</a> — Release the memory to OS which is not used by the memory buffer.</li><li><a href="swoole-buffer.substr.html">Swoole\Buffer::substr</a> — Read data from the memory buffer based on offset and length. Or remove data from the memory buffer.</li><li><a href="swoole-buffer.tostring.html">Swoole\Buffer::__toString</a> — Get the string value of the memory buffer.</li><li><a href="swoole-buffer.write.html">Swoole\Buffer::write</a> — Write data to the memory buffer. The memory allocated for the buffer will not be changed.</li></ul></li><li><a href="class.swoole-channel.html">Swoole\Channel</a> — The Swoole\Channel class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-channel.construct.html">Swoole\Channel::__construct</a> — Construct a Swoole Channel</li><li><a href="swoole-channel.destruct.html">Swoole\Channel::__destruct</a> — Destruct a Swoole channel.</li><li><a href="swoole-channel.pop.html">Swoole\Channel::pop</a> — Read and pop data from swoole channel.</li><li><a href="swoole-channel.push.html">Swoole\Channel::push</a> — Write and push data into Swoole channel.</li><li><a href="swoole-channel.stats.html">Swoole\Channel::stats</a> — Get stats of swoole channel.</li></ul></li><li><a href="class.swoole-client.html">Swoole\Client</a> — The Swoole\Client class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-client.close.html">Swoole\Client::close</a> — Close the connection established.</li><li><a href="swoole-client.connect.html">Swoole\Client::connect</a> — Connect to the remote TCP or UDP port.</li><li><a href="swoole-client.construct.html">Swoole\Client::__construct</a> — Create Swoole sync or async TCP/UDP client, with or without SSL.</li><li><a href="swoole-client.destruct.html">Swoole\Client::__destruct</a> — Destruct the Swoole client.</li><li><a href="swoole-client.getpeername.html">Swoole\Client::getpeername</a> — Get the remote socket name of the connection.</li><li><a href="swoole-client.getsockname.html">Swoole\Client::getsockname</a> — Get the local socket name of the connection.</li><li><a href="swoole-client.isconnected.html">Swoole\Client::isConnected</a> — Check if the connection is established.</li><li><a href="swoole-client.on.html">Swoole\Client::on</a> — Add callback functions triggered by events.</li><li><a href="swoole-client.pause.html">Swoole\Client::pause</a> — Pause receiving data.</li><li><a href="swoole-client.pipe.html">Swoole\Client::pipe</a> — Redirect the data to another file descriptor.</li><li><a href="swoole-client.recv.html">Swoole\Client::recv</a> — Receive data from the remote socket.</li><li><a href="swoole-client.resume.html">Swoole\Client::resume</a> — Resume receiving data.</li><li><a href="swoole-client.send.html">Swoole\Client::send</a> — Send data to the remote TCP socket.</li><li><a href="swoole-client.sendfile.html">Swoole\Client::sendfile</a> — Send file to the remote TCP socket.</li><li><a href="swoole-client.sendto.html">Swoole\Client::sendto</a> — Send data to the remote UDP address.</li><li><a href="swoole-client.set.html">Swoole\Client::set</a> — Set the Swoole client parameters before the connection is established.</li><li><a href="swoole-client.sleep.html">Swoole\Client::sleep</a> — Remove the TCP client from system event loop.</li><li><a href="swoole-client.wakeup.html">Swoole\Client::wakeup</a> — Add the TCP client back into the system event loop.</li></ul></li><li><a href="class.swoole-connection-iterator.html">Swoole\Connection\Iterator</a> — The Swoole\Connection\Iterator class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-connection-iterator.count.html">Swoole\Connection\Iterator::count</a> — Count connections.</li><li><a href="swoole-connection-iterator.current.html">Swoole\Connection\Iterator::current</a> — Return current connection entry.</li><li><a href="swoole-connection-iterator.key.html">Swoole\Connection\Iterator::key</a> — Return key of the current connection.</li><li><a href="swoole-connection-iterator.next.html">Swoole\Connection\Iterator::next</a> — Move to the next connection.</li><li><a href="swoole-connection-iterator.offsetexists.html">Swoole\Connection\Iterator::offsetExists</a> — Check if offet exists.</li><li><a href="swoole-connection-iterator.offsetget.html">Swoole\Connection\Iterator::offsetGet</a> — Offset to retrieve.</li><li><a href="swoole-connection-iterator.offsetset.html">Swoole\Connection\Iterator::offsetSet</a> — Assign a Connection to the specified offset.</li><li><a href="swoole-connection-iterator.offsetunset.html">Swoole\Connection\Iterator::offsetUnset</a> — Unset an offset.</li><li><a href="swoole-connection-iterator.rewind.html">Swoole\Connection\Iterator::rewind</a> — Rewinds iterator</li><li><a href="swoole-connection-iterator.valid.html">Swoole\Connection\Iterator::valid</a> — Check if current position is valid.</li></ul></li><li><a href="class.swoole-coroutine.html">Swoole\Coroutine</a> — The Swoole\Coroutine class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-coroutine.call-user-func-array.html">Swoole\Coroutine::call_user_func_array</a> — Call a callback with an array of parameters</li><li><a href="swoole-coroutine.call-user-func.html">Swoole\Coroutine::call_user_func</a> — Call a callback given by the first parameter</li><li><a href="swoole-coroutine.cli-wait.html">Swoole\Coroutine::cli_wait</a> — Description</li><li><a href="swoole-coroutine.create.html">Swoole\Coroutine::create</a> — Description</li><li><a href="swoole-coroutine-client.close.html">Swoole\Coroutine\Client::close</a> — Description</li><li><a href="swoole-coroutine-client.connect.html">Swoole\Coroutine\Client::connect</a> — Description</li><li><a href="swoole-coroutine-client.construct.html">Swoole\Coroutine\Client::__construct</a> — Description</li><li><a href="swoole-coroutine-client.destruct.html">Swoole\Coroutine\Client::__destruct</a> — Description</li><li><a href="swoole-coroutine-client.getpeername.html">Swoole\Coroutine\Client::getpeername</a> — Description</li><li><a href="swoole-coroutine-client.getsockname.html">Swoole\Coroutine\Client::getsockname</a> — Description</li><li><a href="swoole-coroutine-client.isconnected.html">Swoole\Coroutine\Client::isConnected</a> — Description</li><li><a href="swoole-coroutine-client.recv.html">Swoole\Coroutine\Client::recv</a> — Description</li><li><a href="swoole-coroutine-client.send.html">Swoole\Coroutine\Client::send</a> — Description</li><li><a href="swoole-coroutine-client.sendfile.html">Swoole\Coroutine\Client::sendfile</a> — Description</li><li><a href="swoole-coroutine-client.sendto.html">Swoole\Coroutine\Client::sendto</a> — Description</li><li><a href="swoole-coroutine-client.set.html">Swoole\Coroutine\Client::set</a> — Description</li><li><a href="swoole-coroutine-http-client.addfile.html">Swoole\Coroutine\Http\Client::addFile</a> — Description</li><li><a href="swoole-coroutine-http-client.close.html">Swoole\Coroutine\Http\Client::close</a> — Description</li><li><a href="swoole-coroutine-http-client.construct.html">Swoole\Coroutine\Http\Client::__construct</a> — Description</li><li><a href="swoole-coroutine-http-client.destruct.html">Swoole\Coroutine\Http\Client::__destruct</a> — Description</li><li><a href="swoole-coroutine-http-client.execute.html">Swoole\Coroutine\Http\Client::execute</a> — Description</li><li><a href="swoole-coroutine-http-client.get.html">Swoole\Coroutine\Http\Client::get</a> — Description</li><li><a href="swoole-coroutine-http-client.getdefer.html">Swoole\Coroutine\Http\Client::getDefer</a> — Description</li><li><a href="swoole-coroutine-http-client.isconnected.html">Swoole\Coroutine\Http\Client::isConnected</a> — Description</li><li><a href="swoole-coroutine-http-client.post.html">Swoole\Coroutine\Http\Client::post</a> — Description</li><li><a href="swoole-coroutine-http-client.recv.html">Swoole\Coroutine\Http\Client::recv</a> — Description</li><li><a href="swoole-coroutine-http-client.set.html">Swoole\Coroutine\Http\Client::set</a> — Description</li><li><a href="swoole-coroutine-http-client.setcookies.html">Swoole\Coroutine\Http\Client::setCookies</a> — Description</li><li><a href="swoole-coroutine-http-client.setdata.html">Swoole\Coroutine\Http\Client::setData</a> — Description</li><li><a href="swoole-coroutine-http-client.setdefer.html">Swoole\Coroutine\Http\Client::setDefer</a> — Description</li><li><a href="swoole-coroutine-http-client.setheaders.html">Swoole\Coroutine\Http\Client::setHeaders</a> — Description</li><li><a href="swoole-coroutine-http-client.setmethod.html">Swoole\Coroutine\Http\Client::setMethod</a> — Description</li><li><a href="swoole-coroutine-mysql.close.html">Swoole\Coroutine\MySQL::close</a> — Description</li><li><a href="swoole-coroutine-mysql.connect.html">Swoole\Coroutine\MySQL::connect</a> — Description</li><li><a href="swoole-coroutine-mysql.construct.html">Swoole\Coroutine\MySQL::__construct</a> — Description</li><li><a href="swoole-coroutine-mysql.destruct.html">Swoole\Coroutine\MySQL::__destruct</a> — Description</li><li><a href="swoole-coroutine-mysql.getdefer.html">Swoole\Coroutine\MySQL::getDefer</a> — Description</li><li><a href="swoole-coroutine-mysql.query.html">Swoole\Coroutine\MySQL::query</a> — Description</li><li><a href="swoole-coroutine-mysql.recv.html">Swoole\Coroutine\MySQL::recv</a> — Description</li><li><a href="swoole-coroutine-mysql.setdefer.html">Swoole\Coroutine\MySQL::setDefer</a> — Description</li><li><a href="swoole-coroutine.getuid.html">Swoole\Coroutine::getuid</a> — Description</li><li><a href="swoole-coroutine.resume.html">Swoole\Coroutine::resume</a> — Description</li><li><a href="swoole-coroutine.suspend.html">Swoole\Coroutine::suspend</a> — Description</li></ul></li><li><a href="class.swoole-event.html">Swoole\Event</a> — The Swoole\Event class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-event.add.html">Swoole\Event::add</a> — Add new callback functions of a socket into the EventLoop.</li><li><a href="swoole-event.defer.html">Swoole\Event::defer</a> — Add a callback function to the next event loop.</li><li><a href="swoole-event.del.html">Swoole\Event::del</a> — Remove all event callback functions of a socket.</li><li><a href="swoole-event.exit.html">Swoole\Event::exit</a> — Exit the eventloop, only available at client side.</li><li><a href="swoole-event.set.html">Swoole\Event::set</a> — Update the event callback functions of a socket.</li><li><a href="swoole-event.wait.html">Swoole\Event::wait</a> — Description</li><li><a href="swoole-event.write.html">Swoole\Event::write</a> — Write data to the socket.</li></ul></li><li><a href="class.swoole-exception.html">Swoole\Exception</a> — The Swoole\Exception class</li><li><a href="class.swoole-http-client.html">Swoole\Http\Client</a> — The Swoole\Http\Client class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-http-client.addfile.html">Swoole\Http\Client::addFile</a> — Add a file to the post form.</li><li><a href="swoole-http-client.close.html">Swoole\Http\Client::close</a> — Close the http connection.</li><li><a href="swoole-http-client.construct.html">Swoole\Http\Client::__construct</a> — Construct the async HTTP client.</li><li><a href="swoole-http-client.destruct.html">Swoole\Http\Client::__destruct</a> — Destruct the HTTP client.</li><li><a href="swoole-http-client.download.html">Swoole\Http\Client::download</a> — Download a file from the remote server.</li><li><a href="swoole-http-client.execute.html">Swoole\Http\Client::execute</a> — Send the HTTP request after setting the parameters.</li><li><a href="swoole-http-client.get.html">Swoole\Http\Client::get</a> — Send GET http request to the remote server.</li><li><a href="swoole-http-client.isconnected.html">Swoole\Http\Client::isConnected</a> — Check if the HTTP connection is connected.</li><li><a href="swoole-http-client.on.html">Swoole\Http\Client::on</a> — Register callback function by event name.</li><li><a href="swoole-http-client.post.html">Swoole\Http\Client::post</a> — Send POST http request to the remote server.</li><li><a href="swoole-http-client.push.html">Swoole\Http\Client::push</a> — Push data to websocket client.</li><li><a href="swoole-http-client.set.html">Swoole\Http\Client::set</a> — Update the HTTP client paramters.</li><li><a href="swoole-http-client.setcookies.html">Swoole\Http\Client::setCookies</a> — Set the http request cookies.</li><li><a href="swoole-http-client.setdata.html">Swoole\Http\Client::setData</a> — Set the HTTP request body data.</li><li><a href="swoole-http-client.setheaders.html">Swoole\Http\Client::setHeaders</a> — Set the HTTP request headers.</li><li><a href="swoole-http-client.setmethod.html">Swoole\Http\Client::setMethod</a> — Set the HTTP request method.</li><li><a href="swoole-http-client.upgrade.html">Swoole\Http\Client::upgrade</a> — Upgrade to websocket protocol.</li></ul></li><li><a href="class.swoole-http-request.html">Swoole\Http\Request</a> — The Swoole\Http\Request class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-http-request.destruct.html">Swoole\Http\Request::__destruct</a> — Destruct the HTTP request.</li><li><a href="swoole-http-request.rawcontent.html">Swoole\Http\Request::rawcontent</a> — Get the raw HTTP POST body.</li></ul></li><li><a href="class.swoole-http-response.html">Swoole\Http\Response</a> — The Swoole\Http\Response class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-http-response.cookie.html">Swoole\Http\Response::cookie</a> — Set the cookies of the HTTP response.</li><li><a href="swoole-http-response.destruct.html">Swoole\Http\Response::__destruct</a> — Destruct the HTTP response.</li><li><a href="swoole-http-response.end.html">Swoole\Http\Response::end</a> — Send data for the HTTP request and finish the response.</li><li><a href="swoole-http-response.gzip.html">Swoole\Http\Response::gzip</a> — Enable the gzip of response content.</li><li><a href="swoole-http-response.header.html">Swoole\Http\Response::header</a> — Set the HTTP response headers.</li><li><a href="swoole-http-response.initheader.html">Swoole\Http\Response::initHeader</a> — Init the HTTP response header.</li><li><a href="swoole-http-response.rawcookie.html">Swoole\Http\Response::rawcookie</a> — Set the raw cookies to the HTTP response.</li><li><a href="swoole-http-response.sendfile.html">Swoole\Http\Response::sendfile</a> — Send file through the HTTP response.</li><li><a href="swoole-http-response.status.html">Swoole\Http\Response::status</a> — Set the status code of the HTTP response.</li><li><a href="swoole-http-response.write.html">Swoole\Http\Response::write</a> — Append HTTP body content to the HTTP response.</li></ul></li><li><a href="class.swoole-http-server.html">Swoole\Http\Server</a> — The Swoole\Http\Server class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-http-server.on.html">Swoole\Http\Server::on</a> — Bind callback function to HTTP server by event name.</li><li><a href="swoole-http-server.start.html">Swoole\Http\Server::start</a> — Start the swoole http server.</li></ul></li><li><a href="class.swoole-lock.html">Swoole\Lock</a> — The Swoole\Lock class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-lock.construct.html">Swoole\Lock::__construct</a> — Construct a memory lock.</li><li><a href="swoole-lock.destruct.html">Swoole\Lock::__destruct</a> — Destory a Swoole memory lock.</li><li><a href="swoole-lock.lock-read.html">Swoole\Lock::lock_read</a> — Lock a read-write lock for reading.</li><li><a href="swoole-lock.lock.html">Swoole\Lock::lock</a> — Try to acquire the lock. It will block if the lock is not available.</li><li><a href="swoole-lock.trylock-read.html">Swoole\Lock::trylock_read</a> — Try to lock a read-write lock for reading and return straight away even the lock is not available.</li><li><a href="swoole-lock.trylock.html">Swoole\Lock::trylock</a> — Try to acquire the lock and return straight away even the lock is not available.</li><li><a href="swoole-lock.unlock.html">Swoole\Lock::unlock</a> — Release the lock.</li></ul></li><li><a href="class.swoole-mmap.html">Swoole\Mmap</a> — The Swoole\Mmap class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-mmap.open.html">Swoole\Mmap::open</a> — Map a file into memory and return the stream resource which can be used by PHP stream operations.</li></ul></li><li><a href="class.swoole-mysql.html">Swoole\MySQL</a> — The Swoole\MySQL class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-mysql.close.html">Swoole\MySQL::close</a> — Close the async MySQL connection.</li><li><a href="swoole-mysql.connect.html">Swoole\MySQL::connect</a> — Connect to the remote MySQL server.</li><li><a href="swoole-mysql.construct.html">Swoole\MySQL::__construct</a> — Construct an async MySQL client.</li><li><a href="swoole-mysql.destruct.html">Swoole\MySQL::__destruct</a> — Destory the async MySQL client.</li><li><a href="swoole-mysql.getbuffer.html">Swoole\MySQL::getBuffer</a> — Description</li><li><a href="swoole-mysql.on.html">Swoole\MySQL::on</a> — Register callback function based on event name.</li><li><a href="swoole-mysql.query.html">Swoole\MySQL::query</a> — Run the SQL query.</li></ul></li><li><a href="class.swoole-mysql-exception.html">Swoole\MySQL\Exception</a> — The Swoole\MySQL\Exception class</li><li><a href="class.swoole-process.html">Swoole\Process</a> — The Swoole\Process class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-process.alarm.html">Swoole\Process::alarm</a> — High precision timer which triggers signal with fixed interval.</li><li><a href="swoole-process.close.html">Swoole\Process::close</a> — Close the pipe to the child process.</li><li><a href="swoole-process.construct.html">Swoole\Process::__construct</a> — Construct a process.</li><li><a href="swoole-process.daemon.html">Swoole\Process::daemon</a> — Change the process to be a daemon process.</li><li><a href="swoole-process.destruct.html">Swoole\Process::__destruct</a> — Destory the process.</li><li><a href="swoole-process.exec.html">Swoole\Process::exec</a> — Execute system commands.</li><li><a href="swoole-process.exit.html">Swoole\Process::exit</a> — Stop the child processes.</li><li><a href="swoole-process.freequeue.html">Swoole\Process::freeQueue</a> — Destroy the message queue created by swoole_process::useQueue.</li><li><a href="swoole-process.kill.html">Swoole\Process::kill</a> — Send signal to the child process.</li><li><a href="swoole-process.name.html">Swoole\Process::name</a> — Set name of the process.</li><li><a href="swoole-process.pop.html">Swoole\Process::pop</a> — Read and pop data from the message queue.</li><li><a href="swoole-process.push.html">Swoole\Process::push</a> — Write and push data into the message queue.</li><li><a href="swoole-process.read.html">Swoole\Process::read</a> — Read data sending to the process.</li><li><a href="swoole-process.signal.html">Swoole\Process::signal</a> — Send signal to the child processes.</li><li><a href="swoole-process.start.html">Swoole\Process::start</a> — Start the process.</li><li><a href="swoole-process.statqueue.html">Swoole\Process::statQueue</a> — Get the stats of the message queue used as the communication method between processes.</li><li><a href="swoole-process.usequeue.html">Swoole\Process::useQueue</a> — Create a message queue as the communication method between the parent process and child processes.</li><li><a href="swoole-process.wait.html">Swoole\Process::wait</a> — Wait for the events of child processes.</li><li><a href="swoole-process.write.html">Swoole\Process::write</a> — Write data into the pipe and communicate with the parent process or child processes.</li></ul></li><li><a href="class.swoole-redis-server.html">Swoole\Redis\Server</a> — The Swoole\Redis\Server class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-redis-server.format.html">Swoole\Redis\Server::format</a> — Description</li><li><a href="swoole-redis-server.sethandler.html">Swoole\Redis\Server::setHandler</a> — Description</li><li><a href="swoole-redis-server.start.html">Swoole\Redis\Server::start</a> — Description</li></ul></li><li><a href="class.swoole-serialize.html">Swoole\Serialize</a> — The Swoole\Serialize class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-serialize.pack.html">Swoole\Serialize::pack</a> — Serialize the data.</li><li><a href="swoole-serialize.unpack.html">Swoole\Serialize::unpack</a> — Unserialize the data.</li></ul></li><li><a href="class.swoole-server.html">Swoole\Server</a> — The Swoole\Server class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-server.addlistener.html">Swoole\Server::addlistener</a> — Add a new listener to the server.</li><li><a href="swoole-server.addprocess.html">Swoole\Server::addProcess</a> — Add a user defined swoole_process to the server.</li><li><a href="swoole-server.after.html">Swoole\Server::after</a> — Trigger a callback function after a period of time.</li><li><a href="swoole-server.bind.html">Swoole\Server::bind</a> — Bind the connection to a user defined user ID.</li><li><a href="swoole-server.cleartimer.html">Swoole\Server::clearTimer</a> — Stop and destory a timer.</li><li><a href="swoole-server.close.html">Swoole\Server::close</a> — Close a connection to the client.</li><li><a href="swoole-server.confirm.html">Swoole\Server::confirm</a> — Check status of the connection.</li><li><a href="swoole-server.connection-info.html">Swoole\Server::connection_info</a> — Get the connection info by file description.</li><li><a href="swoole-server.connection-list.html">Swoole\Server::connection_list</a> — Get all of the established connections.</li><li><a href="swoole-server.construct.html">Swoole\Server::__construct</a> — Construct a Swoole server.</li><li><a href="swoole-server.defer.html">Swoole\Server::defer</a> — Delay execution of the callback function at the end of current EventLoop.</li><li><a href="swoole-server-port.construct.html">Swoole\Server\Port::__construct</a> — Construct a server port</li><li><a href="swoole-server-port.destruct.html">Swoole\Server\Port::__destruct</a> — Destory server port</li><li><a href="swoole-server-port.on.html">Swoole\Server\Port::on</a> — Register callback functions by event.</li><li><a href="swoole-server-port.set.html">Swoole\Server\Port::set</a> — Set protocol of the server port.</li><li><a href="swoole-server.exist.html">Swoole\Server::exist</a> — Check if the connection is existed.</li><li><a href="swoole-server.finish.html">Swoole\Server::finish</a> — Used in task process for sending result to the worker process when the task is finished.</li><li><a href="swoole-server.getclientinfo.html">Swoole\Server::getClientInfo</a> — Get the connection info by file description.</li><li><a href="swoole-server.getclientlist.html">Swoole\Server::getClientList</a> — Get all of the established connections.</li><li><a href="swoole-server.getlasterror.html">Swoole\Server::getLastError</a> — Get the error code of the most recent error.</li><li><a href="swoole-server.heartbeat.html">Swoole\Server::heartbeat</a> — Check all the connections on the server.</li><li><a href="swoole-server.listen.html">Swoole\Server::listen</a> — Listen on the given IP and port, socket type.</li><li><a href="swoole-server.on.html">Swoole\Server::on</a> — Register a callback function by event name.</li><li><a href="swoole-server.pause.html">Swoole\Server::pause</a> — Stop receiving data from the connection.</li><li><a href="swoole-server.protect.html">Swoole\Server::protect</a> — Set the connection to be protected mode.</li><li><a href="swoole-server.reload.html">Swoole\Server::reload</a> — Restart all the worker process.</li><li><a href="swoole-server.resume.html">Swoole\Server::resume</a> — Start receving data from the connection.</li><li><a href="swoole-server.send.html">Swoole\Server::send</a> — Send data to the client.</li><li><a href="swoole-server.sendfile.html">Swoole\Server::sendfile</a> — Send file to the connection.</li><li><a href="swoole-server.sendmessage.html">Swoole\Server::sendMessage</a> — Send message to worker processes by ID.</li><li><a href="swoole-server.sendto.html">Swoole\Server::sendto</a> — Send data to the remote UDP address.</li><li><a href="swoole-server.sendwait.html">Swoole\Server::sendwait</a> — Send data to the remote socket in the blocking way.</li><li><a href="swoole-server.set.html">Swoole\Server::set</a> — Set the runtime settings of the swoole server.</li><li><a href="swoole-server.shutdown.html">Swoole\Server::shutdown</a> — Shutdown the master server process, this function can be called in worker processes.</li><li><a href="swoole-server.start.html">Swoole\Server::start</a> — Start the Swoole server.</li><li><a href="swoole-server.stats.html">Swoole\Server::stats</a> — Get the stats of the Swoole server.</li><li><a href="swoole-server.stop.html">Swoole\Server::stop</a> — Stop the Swoole server.</li><li><a href="swoole-server.task.html">Swoole\Server::task</a> — Send data to the task worker processes.</li><li><a href="swoole-server.taskwait.html">Swoole\Server::taskwait</a> — Send data to the task worker processes in blocking way.</li><li><a href="swoole-server.taskwaitmulti.html">Swoole\Server::taskWaitMulti</a> — Execute multiple tasks concurrently.</li><li><a href="swoole-server.tick.html">Swoole\Server::tick</a> — Repeats a given function at every given time-interval.</li></ul></li><li><a href="class.swoole-table.html">Swoole\Table</a> — The Swoole\Table class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-table.column.html">Swoole\Table::column</a> — Set the data type and size of the columns.</li><li><a href="swoole-table.construct.html">Swoole\Table::__construct</a> — Construct a Swoole memory table with fixed size.</li><li><a href="swoole-table.count.html">Swoole\Table::count</a> — Count the rows in the table, or count all the elements in the table if $mode = 1.</li><li><a href="swoole-table.create.html">Swoole\Table::create</a> — Create the swoole memory table.</li><li><a href="swoole-table.current.html">Swoole\Table::current</a> — Get the current row.</li><li><a href="swoole-table.decr.html">Swoole\Table::decr</a> — Decrement the value in the Swoole table by $row_key and $column_key.</li><li><a href="swoole-table.del.html">Swoole\Table::del</a> — Delete a row in the Swoole table by $row_key.</li><li><a href="swoole-table.destroy.html">Swoole\Table::destroy</a> — Destroy the Swoole table.</li><li><a href="swoole-table.exist.html">Swoole\Table::exist</a> — Check if a row is existed by $row_key.</li><li><a href="swoole-table.get.html">Swoole\Table::get</a> — Get the value in the Swoole table by $row_key and $column_key.</li><li><a href="swoole-table.incr.html">Swoole\Table::incr</a> — Increment the value by $row_key and $column_key.</li><li><a href="swoole-table.key.html">Swoole\Table::key</a> — Get the key of current row.</li><li><a href="swoole-table.next.html">Swoole\Table::next</a> — Iterator the next row.</li><li><a href="swoole-table.rewind.html">Swoole\Table::rewind</a> — Rewind the iterator.</li><li><a href="swoole-table.set.html">Swoole\Table::set</a> — Update a row of the table by $row_key.</li><li><a href="swoole-table.valid.html">Swoole\Table::valid</a> — Check current if the current row is valid.</li></ul></li><li><a href="class.swoole-timer.html">Swoole\Timer</a> — The Swoole\Timer class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-timer.after.html">Swoole\Timer::after</a> — Trigger a callback function after a period of time.</li><li><a href="swoole-timer.clear.html">Swoole\Timer::clear</a> — Delete a timer by timer ID.</li><li><a href="swoole-timer.exists.html">Swoole\Timer::exists</a> — Check if a timer is existed.</li><li><a href="swoole-timer.tick.html">Swoole\Timer::tick</a> — Repeats a given function at every given time-interval.</li></ul></li><li><a href="class.swoole-websocket-frame.html">Swoole\WebSocket\Frame</a> — The Swoole\WebSocket\Frame class</li><li><a href="class.swoole-websocket-server.html">Swoole\WebSocket\Server</a> — The Swoole\WebSocket\Server class<ul class="chunklist chunklist_book chunklist_children"><li><a href="swoole-websocket-server.exist.html">Swoole\WebSocket\Server::exist</a> — Check if the file descriptor exists.</li><li><a href="swoole-websocket-server.on.html">Swoole\WebSocket\Server::on</a> — Register event callback function</li><li><a href="swoole-websocket-server.pack.html">Swoole\WebSocket\Server::pack</a> — Get a pack of binary data to send in a single frame.</li><li><a href="swoole-websocket-server.push.html">Swoole\WebSocket\Server::push</a> — Push data to the remote client.</li><li><a href="swoole-websocket-server.unpack.html">Swoole\WebSocket\Server::unpack</a> — Unpack the binary data received from the client.</li></ul></li></ul></div></div></div></body></html>